package com.jl.model.niuniu.enums;

/*
特殊牌型
 */
public enum SpecialCardType2 {

    type1("1",25,"同花顺(25倍)"),
    type2("2",20,"一条龙(20倍)"),
    type3("3",20,"五小牛(20倍)"),
    type4("4",19,"炸弹牛(19倍)"),
    type5("5",18,"葫芦牛(18倍)"),
    type6("6",17,"同花牛(17倍)"),
    type7("7",16,"顺子牛(16倍)"),
    type8("8",15,"金花牛(15倍)"),
    type9("9",14,"银牛(14倍)"),
    type10("10",10,"比翼牛(10倍)");

    private String id;
    private Integer value;
    private String desc;

    SpecialCardType2(String id, Integer value, String desc) {
        this.id = id;
        this.value = value;
        this.desc = desc;
    }

    public String getId() {
        return id;
    }

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static int getEnumById(String id){
        SpecialCardType2[] values = SpecialCardType2.values();
        for (SpecialCardType2 value : values) {
            if (id.equals(value.getId())){
                return value.getValue();
            }
        }
        return 0;
    }
}
